package com.geeguo.ebuilder.client.business.system.operlog.model;

import com.geeguo.ebuilder.client.base.log.model.LogRecord;
import com.geeguo.ebuilder.core.common.model.converter.DateLongMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(uses = DateLongMapper.class)
public interface OperLogConverter {

    OperLogConverter INSTANCE = Mappers.getMapper(OperLogConverter.class);

    OperLogVO convert2VO(OperLogEntity entity);

    OperLogEntity convert2Entity(OperLogVO vo);
    OperLogEntity convert2Entity(LogRecord logRecord);
}